import 'package:json_annotation/json_annotation.dart';

part 'SystemChild.g.dart';

@JsonSerializable(explicitToJson: true)
class SystemChild {
  final int id;
  final int courseId;
  final String name;
  final int order;
  final int parentChapterId;
  final int visible;

  SystemChild(this.id, this.courseId, this.name, this.order, this.parentChapterId, this.visible);

  factory SystemChild.fromJson(Map<String, dynamic> json) =>
      _$SystemChildFromJson(json);

  Map<String, dynamic> toJson() => _$SystemChildToJson(this);
}
